<!-- 首页的新闻列表 -->
<template>
  <div class="h-news-item clearfix">
    <div class="cover">
      <img :src="item.img" alt="">
    </div>
    <div class="desc">
      <div class="title">{{item.title}}</div>
      <p class="content">{{item.content}}</p>
      <div class="bottom">
        <a class="see-detail"><span class="text">查看详情</span><span class="icon-box"><i class="icon"></i></span></a>
        <span class="date">{{item.date}}</span>
      </div>
    </div>
  </div> 
</template>

<script>
  export default {
    name: 'h-new-item',
    props: {
      item: {
        type: Object
      }
    },
    data() {
      return {}
    }
  }
</script>

<style lang="less">
  @import '~COMMON/common.less';

  .h-news-item {
    text-align: left;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    .cover {
      float: left;
      margin-right: 50px;
      >img {
        width: 260px;
        height: 260px;
      }
    }
    .desc {
      display: table;
      .title {
        .Mult-line(2);
        font-size: 20px;
        font-weight: bold;
        line-height: 30px;
        height: 30*2px;
      }
      .content {
        .Mult-line(4);
        line-height: 26px;
        height: 26*4px;
        margin-top: 15px;
        margin-bottom: 35px;
      }
      .bottom {
        .see-detail {
          cursor: pointer;
          display: inline-block;
          width: 160px;
          .text {
            display: inline-block;
            vertical-align: middle;
            text-align: center;
            width: 120px;
            line-height: 40px;
            background-color: #8ee3f7;
          }
          .icon-box {
            display: inline-block;
            vertical-align: middle;
            text-align: center;
            width: 40px;
            height: 40px;
            background-color: #47beda;
            .icon {
              display: inline-block;
              width: 24px;
              height: 24px;
              margin-top: 8px;
              background-image: url(~IMGS/circle-arrow-right-icon.png);
            }
          }
        }
        .date {
          float: right;
          margin-top: 20px;
        }
      }
    }
  }
</style>